package matchthreegame.gameLogic;

public class LevelsInfo {

	public static String getLevel(int level) {
		
		String levelJSON = new String();
		
		switch (level) {
		case 1:
			levelJSON = LevelsInfo.getLevel1();
			break;
			
		case 2:
			levelJSON = LevelsInfo.getLevel2();
			break;
			
		case 3:
			levelJSON = LevelsInfo.getLevel3();
			break;

		default:
			break;
		}
		
		return levelJSON;
		
	}
	
	private static String getLevel1() {
		
		return new String("{\"tiles\":[[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1]," 
				+ "[1,1,1,1,1,1,1,1,1],"
				+ "[1,1,1,1,1,1,1,1,1]],"
				+ "\"targetScore\":1000,"
				+ "\"moves\":15}");

	}
	
	private static String getLevel2() {
		
		return new String("{"
				+ "\"tiles\" : [ [0, 1, 1, 0, 0, 0, 1, 1, 0 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[0, 0, 1, 1, 1, 1, 1, 0, 0 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[0, 1, 1, 0, 0, 0, 1, 1, 0 ] ],"
						+ " \"targetScore\" : 1000,"
						+ "\"moves\" : 15,}"
						);	            
		
	}
	
	private static String getLevel3() {
		
		return new String("{"
				+ "\"tiles\" : [ [0, 0, 1, 0, 0, 0, 1, 0, 0 ],"
						+ "[0, 1, 1, 1, 1, 1, 1, 1, 0 ],"
						+ "[1, 1, 0, 1, 1, 1, 0, 1, 1 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[0, 1, 1, 1, 1, 1, 1, 1, 0 ],"
						+ "[1, 1, 1, 1, 1, 1, 1, 1, 1 ],"
						+ "[1, 0, 1, 1, 1, 1, 1, 0, 1 ],"
						+ "[1, 0, 1, 1, 1, 1, 1, 0, 1 ],"
						+ "[0, 0, 1, 0, 0, 0, 1, 0, 0 ] ],"
						+ " \"targetScore\" : 1000,"
						+ "\"moves\" : 15,}"
						);	            
		
	}
	
}







